//
//  LxRoundScrollView.h
//  LvXiMark
//
//  Created by charlicar on 16/5/13.
//  Copyright © 2016年 SJT. All rights reserved.

//******************************轮播图控件***************************//

#import <UIKit/UIKit.h>
@class LxRoundScrollView;
@protocol LxRoundScrollViewDelegate <NSObject>
@optional
-(void)LxRoundScrollView:(LxRoundScrollView*)roundScrollView didEndUpDateImages:(NSArray*)images;

-(void)LxRoundScrollView:(LxRoundScrollView*)roundScrollView didClickIndex:(NSInteger)index;
@end

@interface LxRoundScrollView : UIView

/**代理指针*/
@property(nonatomic,assign)id<LxRoundScrollViewDelegate>delegate;

/**轮播图片*/
@property (nonatomic,strong)NSArray *images;

/**pageControl*/
@property (nonatomic,weak,readonly)UIPageControl *pageControl;

/**是否滚动*/
@property (nonatomic,assign,getter=isScrollDirectionPortrait)BOOL scrollDirectionPortrait;

@property (nonatomic,weak)UIScrollView *scrollView;

/**关闭定时器*/
- (void)stopTimer;
/**开启定时器*/
- (void)startTimer;

-(void)bannerPangesturenEvents:(UIPanGestureRecognizer*)gesture;

-(void)bannerViewClick:(UITapGestureRecognizer*)gesture;



-(void)upDataImages;


-(LxRoundScrollView*(^)(NSArray<AdvPicModel*>* ads))setAds;

-(LxRoundScrollView*(^)(BOOL enableTimer))setEnableTimer;

-(LxRoundScrollView*(^)(id obj))setDelegate;

@end
